﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace TireBias
{
   public class RouteConfig
   {
      public static void RegisterRoutes(RouteCollection routes)
      {
         routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

         Boolean i = true;
         if (i)
         {
           
         routes.MapRoute(
             name: "Default",
             url: "{controller}/{action}",
            //  defaults: new { controller = "TirePLN", action = "index" }     
            //  defaults: new { controller = "biasloss", action = "index", id = UrlParameter.Optional }
            // defaults: new { controller = "Table", action = "Index" }    
             defaults: new { controller = "BiasHead", action = "index" }    
        );
         }
         else
         {
            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "TirePLN", action = "index", id = UrlParameter.Optional }
            );

         }

      }
      
   }
}